package com.literaryfamily.literaryfamily.dao;

import com.literaryfamily.literaryfamily.entity.UserCollect;
import com.literaryfamily.literaryfamily.entity.UserCollectExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserCollectMapper {
    long countByExample(UserCollectExample example);

    int deleteByExample(UserCollectExample example);

    int deleteByPrimaryKey(@Param("userId") Long userId, @Param("collectBookId") Long collectBookId);

    int insert(UserCollect row);

    int insertSelective(UserCollect row);

    List<UserCollect> selectByExample(UserCollectExample example);

    UserCollect selectByPrimaryKey(@Param("userId") Long userId, @Param("collectBookId") Long collectBookId);

    int updateByExampleSelective(@Param("row") UserCollect row, @Param("example") UserCollectExample example);

    int updateByExample(@Param("row") UserCollect row, @Param("example") UserCollectExample example);

    int updateByPrimaryKeySelective(UserCollect row);

    int updateByPrimaryKey(UserCollect row);
}